﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;


namespace EZCRS.HCMS.Entity
{

    #region HCRS_Proptype
        /// <summary>
        /// 酒店类型
        /// </summary>
        public class HCRS_Proptype
        {
            private int? _id;
            private string _propcode = String.Empty;
            private string _propname = String.Empty;
            private int? _languagetype;

            public HCRS_Proptype()
            {
            }

            public HCRS_Proptype(DataRow dr)
            {
                if (dr!=null)
                {
                    _id = Convert.ToInt32(dr["id"].ToString());
                    _propcode = dr["propcode"].ToString();
                    _propname = dr["propname"].ToString();
                    if (dr["languagetype"].ToString() != "")
                        _languagetype = Convert.ToInt32(dr["languagetype"].ToString());
                }
            }

            #region Public Properties
            /// <summary>
            /// 编号
            /// </summary>
            [DataFieldAttribute("id", "pk")]
            public int? Id
            {
                get { return _id; }
                set { _id = value; }
            }

            /// <summary>
            /// 描述编码
            /// </summary>
            public string propcode
            {
                get { return _propcode; }
                set { _propcode = value; }
            }

            /// <summary>
            /// 简单描述
            /// </summary>
            public string propname
            {
                get { return _propname; }
                set { _propname = value; }
            }

            /// <summary>
            /// 所属语言类型
            /// </summary>
            public int? languagetype
            {
                get { return _languagetype; }
                set { _languagetype = value; }
            }
            #endregion
        }
        #endregion
}
